using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Table
{
    /// <summary>
    /// <para>Delete Rows</para>
    /// <para>Deletes all or the selected subset of rows from the input.</para>
    /// <para>从输入中删除所有行或选定的行子集。</para>
    /// </summary>    
    [DisplayName("Delete Rows")]
    public class DeleteRows : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeleteRows()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_rows">
        /// <para>Input Rows</para>
        /// <para>The feature class, layer, table, or table view whose rows will be deleted.</para>
        /// <para>将删除其行的要素类、图层、表或表视图。</para>
        /// </param>
        public DeleteRows(object _in_rows)
        {
            this._in_rows = _in_rows;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Delete Rows";

        public override string CallName => "management.DeleteRows";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_rows, _out_table];

        /// <summary>
        /// <para>Input Rows</para>
        /// <para>The feature class, layer, table, or table view whose rows will be deleted.</para>
        /// <para>将删除其行的要素类、图层、表或表视图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Rows")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_rows { get; set; }


        /// <summary>
        /// <para>Updated Input With Rows Removed</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input With Rows Removed")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_table { get; set; }


        public DeleteRows SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}